package com.zhentao.appointment.request;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 预约须知请求类
 *
 * @author zhentao
 * @since 2024-01-01
 */
@Data
@Accessors(chain = true)
public class AppointmentNoticeRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 须知标题
     */
    @NotBlank(message = "须知标题不能为空")
    private String noticeTitle;

    /**
     * 须知内容
     */
    @NotBlank(message = "须知内容不能为空")
    private String noticeContent;

    /**
     * 须知类型：general-一般须知，policy-政策须知，requirement-要求须知
     */
    @NotBlank(message = "须知类型不能为空")
    private String noticeType;

    /**
     * 高亮文本
     */
    private String highlightText;

    /**
     * 排序顺序
     */
    @NotNull(message = "排序顺序不能为空")
    private Integer sortOrder;

    /**
     * 状态：1-启用，0-禁用
     */
    @NotNull(message = "状态不能为空")
    private Integer status;
}
